<?php

namespace App\Error\Kms;

use App\Error\BaseError;

/**
 * @datetime  2023-04-26 10:40:14
 * @author      system
 * @project    KMS
 * @projectDesc    运营管理
 * @module      USER
 * @moduleDesc      用户模块
 */
class UserError extends BaseError
{

    /**
     * @var    array
     * @cnMessage    账号密码输入有误（app版本号有误）
     * @enMessage
     */
    const  ERROR_APP_VERSION = [
        "code" => 100001005,
        "cn"   => "账号密码输入有误（app版本号有误）",
        "en"   => ""
    ];

    /**
     * @var    array
     * @cnMessage    用户账号或密码输入有误
     * @enMessage
     */
    const  ERROR_USER_OR_PASSWORD = [
        "code" => 100001006,
        "cn"   => "用户账号或密码输入有误",
        "en"   => ""
    ];

    /**
     * @var    array
     * @cnMessage    获取用户信息失败
     * @enMessage
     */
    const  GET_USERINFO_FAIL = [
        "code" => 100001004,
        "cn"   => "获取用户信息失败",
        "en"   => ""
    ];

    /**
     * @var    array
     * @cnMessage    用户已离职
     * @enMessage
     */
    const  USER_EXITED = [
        "code" => 100001002,
        "cn"   => "kms用户已离职",
        "en"   => ""
    ];

    /**
     * @var    array
     * @cnMessage    飞书用户不存在
     * @enMessage
     */
    const  USER_NOT_EXISTS_IN_FS = [
        "code" => 100001003,
        "cn"   => "飞书用户不存在",
        "en"   => ""
    ];

    /**
     * @var    array
     * @cnMessage    用户信息尚未录入系统或已离职，请联系管理员核实
     * @enMessage
     */
    const  USER_NOT_IN_SYSTEM = [
        "code" => 100001001,
        "cn"   => "用户信息尚未录入系统或已离职，请联系管理员核实",
        "en"   => ""
    ];

    /**
     * @var    array
     * @cnMessage    验证码已失效，请重新获取
     * @enMessage
     */
    const  VERIFY_CODE_ERR = [
        "code" => 100001007,
        "cn"   => "验证码已失效，请重新获取",
        "en"   => ""
    ];

    /**
     * @var    array
     * @cnMessage    验证码已失效，请重新获取
     * @enMessage
     */
    const  APP_VERSION_ERR = [
        "code" => 100001008,
        "cn"   => "app版本号有误",
        "en"   => ""
    ];


}
